package com.lizemin.mybatis.config;

import com.lizemin.mybatis.util.SpringContainer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * @author lzm
 * @date 2025/5/18 21:29
 * @description
 */
@ConditionalOnClass(DataSource.class)
@EnableConfigurationProperties({DataSourceProperties.class, PowerMybatisProperties.class})
@Configuration(proxyBeanMethods = false)
public class PowerMybatisAutoConfiguration {

    @Bean
    public SpringContainer springContainer() {
        return new SpringContainer();
    }



}
